<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>中间交工验收检测信息</title>
<script type="text/javascript" charset="utf-8"
	src="<c:url value='/KindEditor/kindeditor.js'/>"></script>
<script type="text/javascript">
	function getcheckResult() {
		var date = new Date();
		$.get("${ctx}/business/mdetect/issue!listall.action?cid=${id}&decorator=open&update=false&confirm=true&time="
								+ date, function(data) {
							$("#frame").html(data);
		});
	}

	$(document).ready(function() {
		getcheckResult();
	});
	function updateProblem(id){
		var titleName = '问题详情';
		var url = appConfig.contPath+"/business/mdetect/issue!view.action?id="+id;
	 	showWindow(titleName,url,{width:740,height:350});
	}
	
	function close1(){
		 $.window.closeAll(); 
	}

</script>
</head>
<body>
	<form
		action="${ctx}/business/mdetect/report!save.action?projectId=${projId}"
		class="yform" method="post" id="inputForm"
		enctype="multipart/form-data">
		<input type="hidden" name="id" id="id" value="${id }"> <input
			type="hidden" name="fid" id="fid" value="${middleDatection.id }">
		<input type="hidden" name="cid" id="cid" value="${id }"> <input
			type="hidden" name="projectId" id="projectId" value="${projId }">
		<div id="caption">
			<h6>${licenseplateNumber}中间交工检测情况汇报</h6>
		</div>
		<div>
			<fieldset>
				<legend>中间交工验收检测意见</legend>
				<table class="noborder">
					<tr class="type-text">
						<td>收文单位</td>
						<td><input type="text" name="orgName" id="orgName" readonly="readonly"
							value="${orgName }">
						</td>
					</tr>
					<tr class="type-text">
						<td>抄送单位</td>
						<td><input type="text" name="cc" id="cc" value="${cc }" readonly="readonly">
						</td>
					</tr>
					<tr class="type-text">
						<td>报告出具时间</td>
						<td><input type="text" id="reportDate" name="reportDate" readonly="readonly"
							value='<fmt:formatDate value="${reportDate }" pattern="yyyy-MM-dd"/>'>
						</td>
					</tr>
					<tr class="type-text">
						<td>报告关键内容</td>
						<td><textarea name="content" id="content" readonly="readonly">${content }</textarea>
						</td>
					</tr>
					<tr class="type-text">
						<td>备注</td>
						<td><textarea name="remark" id="remark" readonly="readonly">${remark }</textarea>
						</td>
					</tr>
				</table>
				<c:if test="${not empty attachments }">
					<div id="caption">
						<h6>${licenseplateNumber}已有附件</h6>
					</div>
					<table>
						<c:forEach items="${attachments }" var="attachment"
							varStatus="state">
							<tr id="tr${state.index }">
								<td colspan="4"><a title="下载"
									href="${ctx}/servlet/annex?id=${attachment.id}">${attachment.upfileFileName}(${attachment.type})<fmt:formatDate
											value="${attachment.fileTime}" pattern="yyyy-MM-dd" /> </a></td>
							</tr>
						</c:forEach>
					</table>
				</c:if>
			</fieldset>
			<fieldset>
				<legend>中间交工验收问题情况汇报列表</legend>
				<div id="frame"></div>
			</fieldset>
		</div>
		<div class="type-button">
		 <input
				type="button" value="返回" class="reset" onclick="history.back()" />
		</div>
	</form>
</body>
</html>